﻿using IdGen;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;

namespace My.SequentialId.SequentialId.Internal
{
    /// <summary>
    /// 使用IdGen 生成  
    /// </summary>
    internal class SequentialNumId : ISequentialId<long>
    {
        private static readonly IdGenerator Generator = new IdGenerator(RandomHelper.GetRandom(0, 1024));

        public long GenerateId()
        {
            return Generator.CreateId();
        }
    }
}
